﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Text;
using System.Xml.Linq;

namespace Ocean.His.MedicalInsurance
{
    /// <summary>
    /// 
    /// </summary>
    [DataContract]
    public class SI2202Data
    {
        /// <summary>
        /// 人员编号
        /// 参数类型字符型
        /// 参数长度30
        /// 代码标识
        /// 是否必填Y
        /// 
        /// </summary>
        [DataMember(Name = "psn_no")]
        public string PsnNo { get; set; }

        /// <summary>
        /// 就诊ID
        /// 参数类型字符型
        /// 参数长度30
        /// 代码标识
        /// 是否必填Y
        /// 
        /// </summary>
        [DataMember(Name = "mdtrt_id")]
        public string MdtrtId { get; set; }

        /// <summary>
        /// 住院/门诊号
        /// 参数类型字符型
        /// 参数长度30
        /// 代码标识
        /// 是否必填Y
        /// 
        /// </summary>
        [DataMember(Name = "ipt_otp_no")]
        public string IptOtpNo { get; set; }

        /// <summary>
        /// 字段扩展
        /// 参数类型字符型
        /// 参数长度4000
        /// 代码标识
        /// 是否必填
        /// 
        /// </summary>
        [DataMember(Name = "exp_content")]
        public string ExpContent { get; set; }

    }

    /// <summary>
    /// 
    /// </summary>
    [DataContract]
    public class SI2202InputModel
    {
        [DataMember(Name = "data")]
        public SI2202Data SI2202Data { get; set; }
    }

    /// <summary>
    /// 2202
    /// 门诊挂号
    /// </summary>
    [DataContract]
    public class SI2202RequestModel : SIBaseRequestModel
    {
        /// <summary>
        /// 交易输入
        /// </summary>
        [DataMember(Name = "input")]
        public SI2202InputModel Input { get; set; }

        public SI2202RequestModel(MedicalInsuranceOption medicalInsuranceOption,
            SI2202Data sI1101Data) : base(medicalInsuranceOption)
        {
            Infno = "2202";
            Input = new SI2202InputModel();
            Input.SI2202Data = sI1101Data;
        }
    }
}
